export default  function LocalTime (time) {
    const utcTime = new Date(time);
    const localTime = new Date(utcTime.getTime() - (new Date().getTimezoneOffset() * 60 * 1000));
    // 自定义输出时间格式，例如："2023-07-27 10:00:00"
    const formattedTime = localTime.toLocaleString("zh-CN", {
      year: "numeric",
      month: "2-digit",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    });
    return formattedTime;
}
